	
	package Dao;
	
	import java.util.List;
	import enitys.Admin;
	
	public interface AdminDao {
	
		/**
		 * 添加管理员
		 * 
		 * @param admin
		 * 
		 * @throws exception
		 */
		public boolean addAdmin(Admin admin) throws Exception;
	
		/**
		 * 查询管理员信息
		 * @param 
		 * @throws exception
		 */
		public List<Admin> findAdmin() throws Exception;
		
		/**
		 * 通过Id查询管理员信息
		 * @param id
		 * @throws exception
		 */
		public List<Admin> findAdminById(int id) throws Exception;
	
		/**
		 * 修改管理员信息
		 * 
		 * @param admin
		 * 
		 * @throws exception
		 */
		public boolean modifadmin(Admin admin) throws Exception;
	
		/**
		 * 删除管理员信息
		 * 
		 * @param admin
		 * 
		 * @throws exception
		 */
		public int deleteadmin(Admin admin) throws Exception;
	
	}
